import { Component } from "cc";


//扩展 Component 组件
export default class JComponent extends Component{

    //总时间
    JtotalDT:number = 0;
    
    JtotalUpdates:number = 0;

    update(dt:number){
        this.JtotalDT += dt;
        this.JtotalUpdates += dt;


        if(this.JtotalUpdates > 1){
            this.JtotalUpdates = 0;
            this.updates();
        }
    }

    //每秒更新
    updates(){}

}

